package com.dys.ai.entity;

import java.time.LocalDateTime;

/**
 * 座位实体类
 */
public class Seat {
    /**
     * 座位ID
     */
    private Long id;

    /**
     * 车厢编号
     */
    private Long carriageId;

    /**
     * 座位编号（比如5A）
     */
    private String seatNumber;

    /**
     * 座位类型(0: 商务座，1：一等座，2：二等座，3：站票)
     */
    private Integer seatType;

    /**
     * 座位状态(0：有座，1：无座)
     */
    private Integer status;

    /**
     * 并发版本记录
     */
    private Integer version;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    public Seat() {
    }

    public Seat(Long id, Long carriageId, String seatNumber, Integer seatType, Integer status, Integer version, LocalDateTime createTime, LocalDateTime updateTime) {
        this.id = id;
        this.carriageId = carriageId;
        this.seatNumber = seatNumber;
        this.seatType = seatType;
        this.status = status;
        this.version = version;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCarriageId() {
        return carriageId;
    }

    public void setCarriageId(Long carriageId) {
        this.carriageId = carriageId;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public String getSeatNumber() {
        return seatNumber;
    }

    public void setSeatNumber(String seatNumber) {
        this.seatNumber = seatNumber;
    }

    public Integer getSeatType() {
        return seatType;
    }

    public void setSeatType(Integer seatType) {
        this.seatType = seatType;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "Seat{" +
                "id=" + id +
                ", carriageId=" + carriageId +
                ", seatNumber='" + seatNumber + '\'' +
                ", seatType=" + seatType +
                ", status=" + status +
                ", version=" + version +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
